package com.cake.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cake.service.inter.IXxAdminService;

/**
 * 登录后主页控制层
 * @author Administrator
 *
 */
@RestController
@RequestMapping(value = "main")
public class MainController {
	
	@Autowired
	private IXxAdminService xxAdminService;
	
	@GetMapping(value = "selectMenusByAdmin")
	public Object selectMenusByAdmin(HttpServletRequest request){
//		LoginAdminInfo loginAdminInfo =  (LoginAdminInfo) request.getSession().getAttribute("loginAdminInfo");
		return xxAdminService.selectAdminMenus(1L);
	}
	
}
